import request from "utils/request";

const newsApi = {};

//分页版
newsApi.pageList = function (listQuery) {
   return request({
      url: "/housesNews/pageList.do",
      method: "get",
      params: listQuery
   });
};

newsApi.add = function (data) {
   return request.postData("/housesNews/add.do", data);
};

newsApi.update = function (data) {
   return request.postData("/housesNews/update.do", data);
};

newsApi.deleted = function (keyId) {
   return request.postData("/housesNews/deleted.do", {keyId});
};


export default newsApi;
